<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>销售订单页脚</title>
    <%= stylesheet_link_tag "/stylesheets/print.css" %>
    <style type="text/css">
      .table tr td{border:solid 1px;font-size:13px;}
    </style>
  </head>
  <body>
    <table width="700" cellpadding="0" cellspacing="0">
      <tr>
        <td width="97">制单人:</td>
        <td width="97"><%=@deliveryOrder.employee.name %></td>
        <td width="97">已付金额:</td>
        <td width="97">
          <%if params[:sub_type] == '2'%>
            <%=@deliveryOrder.sale_order.rec_amount %>
          <%end%>
        </td>
        <td width="97">应付金额:</td>
        <td width="97">
          <%if params[:sub_type] == '2'%>
            <%= number_with_delimiter( '%.3f' % @deliveryOrder.sale_order.amount) %>
          <%end%>
        </td>
        <td width="97"></td>
        <td width="97"></td>
      </tr>
      <tr>
        <td width="97">仓库签字:</td>
        <td width="97"></td>
        <td width="97">业务签字:</td>
        <td width="97"></td>
        <td width="97">客户签字:</td>
        <td width="97"></td>
        <td width="97">账务盖章:</td>
        <td width="97"></td>
      </tr>
      <tr>
        <td width="97">客户电话:</td>
        <td colspan="6"><%=@deliveryOrder.sale_order.phone %></td>
      </tr>
      <tr>
        <td width="97">送货地址:</td>
        <td colspan="6"><%=@deliveryOrder.sale_order.delivery_address %></td>
      </tr>
    </table>
  </body>
</html>